BINFOLDER = ../../bin
INDEX_FOLDER = ../../index

all:
	g++ -I $(INDEX_FOLDER)/riCode/src -I $(INDEX_FOLDER)/htmlcxx-0.84/include \
	-c -O2 -Wno-deprecated -Wall RankMainEvaluation.cpp -o bin/RankMainEvaluation.o
	
	g++ $(BINFOLDER)/Registry.o $(BINFOLDER)/Run.o $(BINFOLDER)/Lexon.o $(BINFOLDER)/Parser.o \
	$(BINFOLDER)/Document.o $(BINFOLDER)/CollectionReader.o $(BINFOLDER)/IndexBuilder.o \
	$(BINFOLDER)/Index.o $(BINFOLDER)/Encoder.o $(BINFOLDER)/QueryResult.o \
	$(BINFOLDER)/TimeMeasurement.o $(BINFOLDER)/DocumentInfo.o $(BINFOLDER)/DocumentIndex.o \
	$(BINFOLDER)/RankBuilder.o $(BINFOLDER)/Rank.o $(BINFOLDER)/AnchorText.o \
	$(BINFOLDER)/DocumentFeatures.o bin/RankMainEvaluation.o \
	$(INDEX_FOLDER)/htmlcxx-0.84/lib/*.o -lz -L $(INDEX_FOLDER)/htmlcxx-0.84/lib -I \
	$(INDEX_FOLDER)/riCode/src -I $(INDEX_FOLDER)/htmlcxx-0.84/include -o bin/rank

clean:
	rm -rf bin/*
